package com.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@PropertySource("classpath:myData.properties")
@Configuration
public class MyDataSourceEntity {
    @Value("${datasource-my.url}")
    private String url;
    @Value("${datasource-my.username}")
    private String username;
    @Value("${datasource-my.password}")
    private String password;
}
